import Basemap from '@/assets/api/basemap'
import centerstarPng from '@/assets/mapimg/centerStar.png'
import centerstarTwoPng from '@/assets/mapimg/centerStarTwo.png'
import nearCityPng from '@/assets/mapimg/nearCity.png'
import nearCityPngThree from '@/assets/mapimg/nearCity3.png'
import checkedPng from '@/assets/mapimg/checked.png'
import nocheckedPng from '@/assets/mapimg/nochecked.png'
import Cesium from 'cesium/Cesium'
import widgets from 'cesium/Widgets/widgets.css'

function CesiumThd(id) {
    this.eqCenter = eqCenter;
    this.mapData = null;
    this.bDistanceLine = [];
    this.options = {
        animation: false,
        baseLayerPicker: false,
        fullscreenButton: false,
        geocoder: false,
        homeButton: false,
        infoBox: false,
        sceneModePicker: false,
        selectionIndicator: false,
        timeline: false,
        navigationHelpButton: false,
        navigationInstructionsInitiallyVisible: false
    }

    this.viewer = new Cesium.Viewer(id);
    //var centerPoint = new AMap.LngLat(this.eqCenter.lon,this.eqCenter.lat)
    // var centerPoint = new AMap.LngLat(this.eqCenter.lon, this.eqCenter.lat)
    // this.amap.setZoomAndCenter(8, centerPoint)
    // //实时交通
    // this.trafficLayer = new AMap.TileLayer.Traffic({
    //     zIndex: 10
    // });
    // this.trafficLayer.setMap(this.amap);
    // this.RoadNet = new AMap.TileLayer.RoadNet({
    //     zIndex:9
    // })
    // this.RoadNet.setMap(this.amap)
    // this.Satellite  =new AMap.TileLayer.Satellite({
    //     zIndex:9
    // })
    // this.Satellite.setMap(this.amap)
    // this.Satellite.hide()
    // //var navOpt = {type: BMAP_NAVIGATION_CONTROL_ZOOM,offset:new AMap.Size(10, 260)};        
    // //this.amap.addControl(new BMap.NavigationControl(navOpt)); 
    // AMapUI.loadUI(['control/BasicControl'], function (BasicControl) {

    //     //添加一个缩放控件
    //     this.amap.addControl(new BasicControl.Zoom({
    //         position: 'rm'
    //     }));

    // }.bind(this));

}
CesiumThd.prototype = new Basemap();